import { IDataManager } from "../cfw/data/IDataManager";
import { localStorage } from "cc"
export class LocalStorage implements IDataManager {


    getItem(key: string) {
        return localStorage.getItem(key);
    }

    getLength() {
        return localStorage.length
    }

    setItem(key: string, value: string) {
        localStorage.setItem(key, value);
    }

    clear() {
        localStorage.clear();
    }

    removeItem(key: string) {
        localStorage.removeItem(key);
    }
}


